package com.property.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 业务-报事报修
 * </p>
 *
 * @author 刘煦煌
 * @since 2023-11-24
 */
@Data
@TableName("biz_repair")
@ApiModel(value = "Repair对象", description = "业务-报事报修")
public class Repair implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    @TableField("name")
    private String name;

    @ApiModelProperty("类型 1公共维修 2户内维修 3卫生家政 4物业投诉 5热心建议")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("优先级 1紧急 2一般 3次要")
    @TableField("priority")
    private Integer priority;

    @ApiModelProperty("联系人")
    @TableField("reportp")
    private String reportp;

    @ApiModelProperty("联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("楼栋房号")
    @TableField("home_cart")
    private String homeCart;

    @ApiModelProperty("故障描述")
    @TableField("faultdp")
    private String faultdp;

    @ApiModelProperty("维修状态 1待处理 2处理中 3已办结")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("前端接收图片")
    @TableField(exist = false)
    private List<String> imgs;

    @ApiModelProperty("数据库图片")
    @TableField("images")
    private String images;

    @ApiModelProperty("创建日期")
    @TableField("create_time")
    private LocalDateTime createTime;


}
